<? $page_title='质检采购入库列表' ?>
<?include "FASHION/page_header.phtml"?>

<form method="get">
	入库/采购单号：<input type="text" name="sno" value="<?= fetch_a_string('sno') ?>" size="12" />
        我的状态: <?= Html::options2(array(
		'data'	=> array('已检','未检'),
		'name'	=> 'r_pass',
		'val'	=> fetch_a_int('r_pass'),
		'tips'	=> '--选择--',
	)) ?>
	&nbsp; <input type="submit" value="搜索" />
</form>

<table border="0" class="list"><tbody>
<tr class="nobg">
	<th>入库单号</th>
	<th>入库时间</th>
	<th>我的状态</th>
	<th>采购订单</th>
	<th>操作</th>
</tr>
<? if($list)foreach($list as $d){ if($d['id']){?>
<tr>
	<td><?$d.sno?></td>
	<td class="nowrap"><?=date('Y/m/d H:i', $d.addtime)?></td>
	<td><?= $d.r_pass ? '已检' : '未检'?></td>
	<td class="nowrap"><a href="<?url("indent-view/id/". $d.indent_id)?>" title="查看采购订单"><? $d.indent_sno ?></a></td>
	<td valign="top">
		<a href="<?url("bound-view/id/".$d.id)?>" class="view" title="查看"></a>
		<a href="<?url("rever-flag/id/".$d.id.'/type/'.Reviewer::CLS_QC)?>" class="flag" title="质检"></a>
	</td>
</tr>
<? } } ?>
</tbody></table>

<? Html::pager($pager) ?>

<?include "FASHION/page_footer.phtml"?>